import {request} from '@/utils/request'

export default {
    // 商品详情页数据
    reqGoodsDetail(id){
        return request.get('/goods/gallery',id)
    },
    //猜你喜欢,同类目其它商品
    goodsGuessyou(id){
        return request.get('/goods/guessyoulike',id)
    },
    // 当ID与UUID/查询当前收藏与购物车数量
    reqCollectQuantity(id){
        return request.get('/order/collectquantity',id)
    },
    // 切换收藏
    reqToggleCollect(id){
        return request.post('/order/judgecollect',id)
    },
    // 加入购物车
    reqJoinCart(params){
        return request.post('/order/joincart',params)
    },
    // 获取购物车详细数据,价格,数量
    reqShopDetail(){
        return request.get('/order/shopdetail')
    },
    // 修改购物车选中状态
    reqChangeCheck(id){
        return request.get('/order/changeCheck',id)
    },
    // 更改购物车产品数量
    reqCartNum(params){
        return request.get('/cart/changecartnum',params)
    },
    //删除用户选中商品成功
    reqCartRm(params){
        return request.get('/cart/shopcartrm',params)
    }

}